﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ninject;
using Mabalacat.CPS.BusinessLogic.Services.Interfaces;

namespace Web.Admin
{
    public partial class EmployeeList : System.Web.UI.Page
    {
        [Inject]
        public IEmployeeService _employeeService { get; set; }

        #region Implementations
        void BindGrid()
        {
            repeaterTable.DataSource = _employeeService.GetAll().ToList();
            repeaterTable.DataBind();
        }
        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
                BindGrid();
        }

        protected void repeaterTable_ItemCommand(object source, RepeaterCommandEventArgs e)
        {

        }

        protected void repeaterTable_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {

        }
    }
}